﻿using System.Collections.Generic;
using System.Reflection;
using LINQtoFxCop.Core;

namespace LINQtoFxCop.Metrics.Application
{
  public class ApplicationNbTypes : MetricsIntrospectionRule
  {
    protected ApplicationNbTypes(string name, string resourceName, Assembly assembly)
      : base(name, resourceName, assembly)
    { }
    public ApplicationNbTypes()
      : base("ApplicationNbTypes")
    { }

    protected override IEnumerable<QueryResult> Query()
    {
      yield return Result(Application, Application.NbTypes());
    }
  }
}
